SftTree/OCX 7.0

SftPictureObject.Picture Property

Softel vdm, Inc.

Defines the image object using an OLE Picture object (IPictureDisp interface).

Syntax       

Get

VB.NET

pPictureDisp = object.Picture  As stdole.IPictureDispLanguage-specific information

VB

Set pPictureDisp = object.Picture  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information pPictureDisp = object.Picture;

VC++

IPictureDisp* pPictureDisp = object->GetPicture();

C

HRESULT object->get_Picture(IPictureDisp** pPictureDisp);

Delphi

pPictureDisp := object.Picture  : IPictureDisp;

Put

VB.NET

object.let_Picture(ByVal pPictureDisp As stdole.IPictureDispLanguage-specific information)

VB

object.Picture = pPictureDisp  As IPictureDisp

C#.NET

void object.let_Picture(stdole.IPictureDispLanguage-specific information pPictureDisp);

VC++

void object->PutPicture(IPictureDisp* pPictureDisp);

C

HRESULT object->put_Picture(IPictureDisp* pPictureDisp);

Delphi

procedure object._Set_Picture(pPictureDisp : IPictureDisp);

PutRef

VB.NET

object.Picture = pPictureDisp  As stdole.IPictureDispLanguage-specific information

VB

Set object.Picture = pPictureDisp  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information object.Picture = pPictureDisp;

VC++

void object->PutRefPicture(IPictureDisp* pPictureDisp);

C

HRESULT object->putref_Picture(IPictureDisp* pPictureDisp);

Delphi

object.Picture := pPictureDisp  : IPictureDisp;

object

A SftPictureObject object.

pPictureDisp

Defines the image object using an OLE Picture object (IPictureDisp interface). For information about picture properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).

Typically, .NET applications use the NETImageObject property to define an image, C and C++ applications use BitmapHandle or Image, VB6 and other COM applications use the Picture property.

The SftPictureObject.Type property is set to sftTypeIDispatch.  The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.

See Also  SftPictureObject Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com